package com.dcrain.api.authz.common;

public enum ApiCodeEnum {
	SUCCESS("200", "success"),
    UNKNOW_ERROR("50001","未知错误"),
    PARAMETER_ERROR("40001","参数错误"),
    TOKEN_EXPIRE("40002","认证过期"),
    REQUEST_TIMEOUT("40003","请求超时"),
    SIGN_ERROR("40004","sign签名错误"),
    REPEAT_SUBMIT("40005","请不要频繁操作"),
	CONTENT_TYPE("40006","Content-Type仅支持application/json格式数据"),
	DATA_FORMAT("40007","data数据格式不支持"),
	TIMESTAMP_TIMEOUT("40008","TIMESTAMP超时"),
	INPUT_ERROR("40009","录入错误"),
	VALIDATE_ERROR("40010","数据验证错误"),
	NODATE_UPDATE("30001","没有数据更新");
	/** 代码 */
    private String code;

    /** 结果 */
    private String msg;
    
    ApiCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
